<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" scope="request"/>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="<c:url value='/resources/styles/main.css' />" type="text/css"/>
    <link type="text/css" rel="stylesheet" href="<c:url value='/resources/ckeditor/_samples/sample.css' />" />
    <%--<script type="text/javascript" src="<c:url value='/resources/scripts/datePicker/WdatePicker.js' />"></script>--%>

    <script type="text/javascript">
        var contextPath = '${ctx}/';

        function download() {
            window.location.href = contextPath +"/admin/downLoadFile.do?id=${data.id}" ;
        }

    </script>
    <title>联系人维护</title>
</head>
<body>

<table class="pagination" style="padding-left: 70px;">
    <tr>
        <td>
            <a href="<c:url value='/admin/listContact.do' />">返回联系人列表</a>
        </td>
    </tr>
</table>
<form enctype="multipart/form-data" id="editContact" name="editContact" action="<c:url value='/admin/editContact.do' />" method="post">

    <%--序号：<input type="text" id="seq" name="seq" value="${data.seq}"/> </br>--%>
    <%--姓名：<input type="text" id="name" name="name"  value="${data.name}" style="margin-top: 3px;"/> </br>--%>
    <%--公司：<input type="text" id="company" name="company" value="${data.company}" style="margin-top: 3px;"/> </br>--%>
    <%--联系电话：<input type="text" id="phone" name="phone" value="${data.phone}" style="margin-top: 3px;"/> </br>--%>

    <%--选择头像:<input type="file" id="fileName" name="fileName" value="上传头像"></intput></br>--%>
    <%--<img class="img" src="${link }" alt="未上传头像" width="180px" height="160px"/>--%>


    <%--<input name="id" type="hidden" id="id" value="${data.id }" />--%>
    <%--<input name="entryDate" type="hidden" id="entryDate" value="${data.entryDate }" />--%>
    <%--<input name="icon" type="hidden" id="icon" value="${data.icon }" />--%>
    <%--</br><input type='submit' value="提交" />--%>

        <table class="list">

            <tr>
                <td>序号</td>
                <td>
                    <input type="text" id="seq" name="seq" value="${data.seq}"/>
                </td>
            </tr>
            <tr>
                <td>姓名</td>
                <td>
                    <input type="text" id="name" name="name"  value="${data.name}" style="margin-top: 3px;"/>
                </td>
            </tr>
            <tr>
                <td>公司</td>
                <td>
                    <input type="text" id="company" name="company" value="${data.company}" style="margin-top: 3px;"/>
                </td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td>
                    <input type="text" id="phone" name="phone" value="${data.phone}" style="margin-top: 3px;"/>
                </td>
            </tr>
            <tr>
                <td>选择头像</td>
                <td>
                    <input type="file" id="fileName" name="fileName" value="上传头像"></intput></br>
                    <img class="img" src="${link }" alt="未上传头像" width="140px" height="140px"/>
                </td>
            </tr>

            <tr>
                <input name="id" type="hidden" id="id" value="${data.id }" />
                <input name="entryDate" type="hidden" id="entryDate" value="${data.entryDate }" />
                <input name="icon" type="hidden" id="icon" value="${data.icon }" />
                <td colspan="2"><input type='submit' value="提交"/></td>
            </tr>
        </table>
</form>
</body>
</html>